from random import normalvariate


latitude_threshold = 66.5

def judge_connect(latitude,threshold):
    if abs(latitude) > latitude_threshold:
        return False
    else:
        if abs(normalvariate(0, 1)) > threshold:
            return False
    return True
